package com.zynn.service.module.es.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 刘天元
 * @since 2018-07-03
 */
@Data
@Accessors(chain = true)
@TableName("`like`")
public class Like implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞ID，主键，自增
     */
    @TableId(value = "likeID", type = IdType.AUTO)
    private Integer likeID;
    /**
     * 点赞动态ID，外键
     */
    @TableField("likeEventID")
    private Integer likeEventID;
    /**
     * 点赞人ID，外键
     */
    @TableField("likeUserID")
    private Integer likeUserID;
    /**
     * 点赞状态， 0--普通点赞  1--取消点赞  2-开心  3-难过   4-愤怒  5-惊讶   
     */
    @TableField("likeStatus")
    private Integer likeStatus;
    /**
     * 喜欢时间，后台自动生成
     */
    @TableField("likeTime")
    private Date likeTime;
    /**
     * 点赞动态的相册id
     */
    @TableField("likeGroupID")
    private Integer likeGroupID;
    /**
     * 被点赞人的id
     */
    @TableField("likeEventUserId")
    private Integer likeEventUserId;


}
